﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing.Imaging;

namespace Gype.UI
{
    public class Image
    {
        protected Image(System.Drawing.Bitmap gdiImage)
        {
        }

        protected virtual void initTextureFromImage(System.Drawing.Bitmap image)
        {
        }

        public static Image FromGDI(Rendertarget target, System.Drawing.Bitmap image)
        {
            return target.CreateImage(image);
        }

        public virtual void SaveAsPng(string filename)
        {
        }

        public int Width { get; protected set; }
        public int Height { get; protected set; }
    }
}
